]> dgit.raspbian.org Git - gnome-shell.git/commit
st-theme-node: Improve borders with gradient backgrounds
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 9 Dec 2010 09:35:40 +0000 (10:35 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 13 Dec 2010 17:15:00 +0000 (18:15 +0100)
commitcb2babb1a010fe72c812045d9466ffbf1350c1d4
treed804ce4cb4afed8ebbe78ec5c15ac585ece3f6f3
parentc648a5f117f0a642a540ca73c30dc366dc6f4257
st-theme-node: Improve borders with gradient backgrounds

For gradient backgrounds, borders were implemented by filling the
background shape with the border color first, and then scaling down
the path to draw the background.

The result is not correct[0], which is especially visible if the border
width is greater than the border radius - so instead of scaling down
the original path, use a separate path for the background.

The result is consistent with the borders we draw for non-gradient
backgrounds, and much closer to the correct standard behavior.

[0] http://www.w3.org/TR/css3-background/#the-border-radius

https://bugzilla.gnome.org/show_bug.cgi?id=607500
src/st/st-theme-node-drawing.c